<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
          		  <tr>
                    <td><?= translate('FREEGIFT_CDKey') ?>:</td>
                    <td><?= $key ?></td>
                </tr>
                 <tr>
                    <td><?= translate('FREEGIFT_KEY_TYPE') ?>:</td>
                    <td><?= $cdkeytype ?></td>
                </tr>
                <tr>
                    <td><?= translate('FREEGIFT_AREAID') ?>:</td>
                    <td><?= $areaid ?></td>
                </tr>
                <tr>
                    <td><?= translate('STARTDATE') ?>:</td>
                    <td><input type="text" name="row[starttime]" id="starttime" size="25" value="<?= $starttime?>" onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss',0,10)"/></td>
                </tr>
                <tr>
                    <td><?= translate('ENDDATE') ?>:</td>
                    <td><input type="text" name="row[endtime]" id="endtime" size="25"  value="<?= $endtime?>" onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss',0,10)"/></td>
                </tr>
                <tr>
                    <td><?= translate('FREEGIFT_OBJECTID') ?>:</td>
                    <td><?= $rewardobjectid ?></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="<?= translate('SUBMIT') ?>" id="submit" /> <input type="reset" value="<?= translate('RESET') ?>" id="reset" /></td>
                </tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#id").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#name").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                
            });
        </script>
    </body>
</html>